using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BigMouthBird : Bird
{
    protected override void FlyingSkill()
    {
        //获取刚体的飞行速度，把速度改变xy方向
        Vector2 velocity = rgd.velocity;
        velocity.x = -velocity.x;
        rgd.velocity = velocity;
        
        //朝向设置反方向
        transform.localScale = new Vector3(-transform.localScale.x, transform.localScale.y, transform.localScale.z);
    }   
    
}
